package it.uniba.di.mas.jpnde.data;

import jade.util.leap.List;
import jade.util.leap.Serializable;

public class PN implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final String XMLNODE="pn";
	public static final String XMLNODE_ID="id";
	public static final String XMLNODE_CONTAINER="container";
	
	private String id="";
	private String container="";
	private List places=null;
	private List transactions=null;
	private String agentId="";
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getContainer() {
		return container;
	}
	public void setContainer(String container) {
		this.container = container;
	}
	
	public List getPlaces(){
		return places;
	}
	public void setPlaces(List value){
		places=value;
	}
	public List getTransactions(){
		return transactions;
	}
	public void setTransactions(List value){
		transactions=value;
	}
	
	public String getAgentId() {
		return agentId;
	}
	public void setAgentId(String agentId) {
		this.agentId = agentId;
	}
	@Override
	public String toString() {
		return "PN [id=" + id + ", container=" + container + ",\n places="+
			places+",\n trans="+transactions+"]";
	}
}
